{include file="header"}
<style>
    .layui-btn-danger{
        margin-left: 0;
    }
</style>
<div class="x-nav">
    <!--           <span class="layui-breadcrumb">-->
    <!--            <a href="">{:lang("system")}</a>-->
    <!--            <a href="">TV管理</a>-->
    <a>
        <cite style="font-size: 18px;">声优管理</cite></a>
    </span>
    <a class="layui-btn layui-btn-small" href="/" style="line-height:1.6em;margin-top:3px;float:right" title="返回主页">
        <i class="layui-icon" style="line-height:30px">返回主页</i></a>
</div>
<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-md12">
            <div class="layui-card">
                <div class="layui-card-body">
                    <table class="layui-table layui-form">
                        <thead>
                        <tr>
<!--                            <th>ID</th>-->
                            <th>作品名</th>
                            <th>话数</th>
                            <th>标题（中文）</th>
                            <th>标题（日文）</th>
                            <th>声优</th>
                            <th>声优（中文）</th>
                            <th>角色</th>
                            <th>角色(日文)</th>
                        </tr>
                        </thead>
                        <tbody>
                        {volist name="lists" id="item"}
                        <tr class="tr_{$item.id}">
<!--                            <td>{$item.id}</td>-->
                            <td>{$item.name}</td>
                            <td>{$item.number_type == 1?"季番":($item.number_type == 2?"常规":"特殊")} -- {$item.number_desc}</td>
                            <td>{$item.name_cn}</td>
                            <td>{$item.name_rw}</td>
                            <td>{$item.seiyuu}</td>
                            <td>{$item.seiyuu_rw}</td>
                            <td>{$item.character}</td>
                            <td>{$item.character_rw}</td>
                        </tr>
                        {/volist}
                        </tbody>
                    </table>
                </div>
                <div class="layui-card-body ">
                    {$lists|raw}
                </div>
            </div>
        </div>
    </div>
</div>

{include file="footer"}
<script>
    function del(id) {
        layer.confirm("{:lang('del.confirm')}",{icon: 3, title:'{:lang("tips")}'},function (index) {
            layer.close(index);
            request("POST",'{:url("television/worksdel")}',{
                id:id
            },function (res) {
                $(`.tr_${id}`).remove()
            })

        })
    }
</script>